furny.entities
Enum TagType

java.lang.Object
  extended by java.lang.Enum<TagType>
      extended by furny.entities.TagType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TagType>

public enum TagType
extends java.lang.Enum<TagType>

Enum for available tag types.

Since:
10.08.2012
Author:
Stephan Dreyer

Enum Constant Summary
Category
           
Collection
           
Color
           
Fabric
           
Location
           
Manufacturer
           
Orientation
           
Purpose
           
Room
           
Style
           
 
Field Summary
private  int ranking
          The ranking/weight of a tag type.
 
Method Summary
 int getRanking()
          Getter for the ranking/weight of a tag type.
static TagType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TagType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Fabric

public static final TagType Fabric

Manufacturer

public static final TagType Manufacturer

Collection

public static final TagType Collection

Style

public static final TagType Style

Color

public static final TagType Color

Location

public static final TagType Location

Orientation

public static final TagType Orientation

Purpose

public static final TagType Purpose

Category

public static final TagType Category

Room

public static final TagType Room
Field Detail

ranking

private final int ranking
The ranking/weight of a tag type.

Method Detail

values

public static TagType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (TagType c : TagType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static TagType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getRanking

public int getRanking()
Getter for the ranking/weight of a tag type.

Returns:
The ranking.
Since:
10.08.2012